
#include "groupMgr_t.h"
#include "uiMutex_t.h"
#include "groupWnd_t.h"

void groupMgr_t::onRefreashGroupInfo(CVarList msg)
{
	groupInfo.clear();
	int size = msg.GetIntValue(1);
	for (int i=0; i<size; i++)
	{
		UniqueID player = msg.GetUIDValue(i+2);
		groupInfo.push_back(player);
	}

	UI_MUTEX
	if (groupWnd_t::wnd!=NULL)
	{
		groupWnd_t::release();
		groupWnd_t::init();
	}
}

const vector<UniqueID> & groupMgr_t::getGroupInfo()
{
	return groupInfo;
}